c# list string return concatenate

38

c# list string return concatenate -

string delimiter = ",";
List<string> items = new List<string>() { "foo", "boo", "john", "doe" };
Console.WriteLine(items.Aggregate((i, j) => i + delimiter + j));

Comments

Submit
0 Comments